cmake_minimum_required(VERSION 2.6)

project(RANSACDemo)

find_package(Boost REQUIRED program_options)
find_package(Qt4 REQUIRED QtCore QtGui)

include(${QT_USE_FILE})

include_directories(
   ${BTL2_INCLUDE_DIRS}
   ${BTL2_EXTRA_INCLUDE_DIRS}
)

set(MOC_HEADERS
   QRANSACDemoApplication.hpp
)

set(HEADERS
   ${MOC_HEADERS}
)

set(SOURCES
   main.cpp
)

set(LIBS
   ${Boost_LIRARIES}
   ${QT_LIBRARIES}
)

qt4_wrap_cpp(MOC_SOURCES ${MOC_HEADERS})

add_executable(RANSACDemo ${SOURCES} ${MOC_SOURCES})

target_link_libraries(RANSACDemo
   ${LIBS}
   ${BTL2_LIBRARIES}
   ${BTL2_EXTRA_LIBRARIES}
)
